package com.cykj.enterprise.mapper;

import com.cykj.common.entity.CareerExpectDO;
import com.cykj.common.entity.JobDO;
import com.cykj.common.entity.RecruitInfoDO;
import com.cykj.common.entity.RegionDO;
import com.cykj.enterprise.vo.CareerExpectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.enterprise.mapper
 * @Author: 小白糖糖
 * @CreateTime: 2025-08-15 10:31
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface HomeMapper {
    /**
     * @Description: 获取所有地区
     * @Param: [parentId]
     * @return: com.cykj.common.entity.RegionDO
     */
    List<RegionDO> getAllRegion();

    /**
     * @Description: 企业端首页,查询人员
     * @Param: [jobId]
     * @return: java.util.List<com.cykj.common.entity.CareerExpectDO>
     */
    List<CareerExpectDO> getRecommendationList(@Param("careerExpectVO")CareerExpectVO careerExpectVO);

    /**
    * @Description: 通过人事ID获取该人事发布过的职位
    * @Param: [hrId]
    * @return: java.util.List<com.cykj.common.entity.RecruitInfoDO>
    */
    List<JobDO> getRecruitInfoByHrId(@Param("hrId")Integer hrId);

    /**
    * @Description: redis获取失败应急措施
    * @Param: [regionId]
    * @return: com.cykj.common.entity.RegionDO
    */
    RegionDO getRegionDOById(@Param("regionId") Integer regionId);
}
